package com.kristin.thread;

import java.util.concurrent.Callable;

/**
 * @ClassName MyCallable
 * @Description TODO
 * @Author Kristin
 * @Date 2021/06/24 11:15:46
 * @Version 1.0.0
 */
public class MyCallable implements Callable {

    private int i;

    public MyCallable(int i) {
        this.i = i;
    }

    @Override
    public Object call() throws Exception {
        System.out.println("执行:" + Thread.currentThread().getName() + " i=" + i);
        return null;
    }
}
